home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Sample3 / Sources / Include / SamplePrt.h < prev    next >
Encoding:
Text File  |  1995-10-11  |  1.3 KB  |  49 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef SAMPLEPRT_H
  5. #define SAMPLEPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _SAMPLEDEF_
  9. #include "SampleDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. //=======================================================================
  23. class FW_CLASS_ATTR FW_CPart;
  24. class FW_CLASS_ATTR FW_CPresentation;
  25.  
  26. //=======================================================================
  27. #ifdef FW_BUILD_WIN16
  28. extern HANDLE far gWinInstance;        // Initialized by LibMain
  29. #endif
  30.  
  31. //=======================================================================
  32. class FW_CLASS_ATTR CSamplePart : public FW_CPart {
  33. public:
  34.                         CSamplePart(ODPart* odPart);
  35.     virtual             ~CSamplePart();
  36.     static const ODValueType     kPartKind;
  37.     static const ODValueType     kPartUserName;
  38. // overrides
  39. protected:
  40.     virtual void         Initialize(Environment* ev);
  41.     virtual FW_CFrame*    NewFrame(Environment* ev,
  42.                                  ODFrame* odFrame,
  43.                                  FW_CPresentation* presentation,
  44.                                  FW_Boolean fromStorage);
  45. };
  46.  
  47. //=======================================================================
  48. #endif
  49.